#ifndef __BUTTON_H__
#define __BUTTON_H__

#include "widget.h"

/** Create a winapi button
 * \param parent: widget that the button draw the button on
 * \param text: displayed text in the button
 * \param x: coordinate on the parent
 * \param y: coordinate on the parent
 * \param width: button size
 * \param height: button size
 * \param extstyle: external style
 *      WS_GROUP: first control of a group
 *      WS_TABSTOP: can get focus if the user press the TAB key
 * \note: signal BN_CLICKED if the user click on the button
 */
EXPORT widget_t *create_button(widget_t*,char*,int32_t,int32_t,
                uint32_t,uint32_t,uint32_t);

/** Set the button text
 * \param self: pointer to the button widget
 * \param text: pointer to a string
 */
EXPORT void button_set_text(widget_t*,char*);

#endif

